import useNum from '../hooks/useNum';
// 自定义hook  子组件
function Mynum() {
    let [num, add] = useNum();
    return (
        <div>
            num组件 --- {num}
            <button onClick={add}>++</button>
        </div>
    )
}

export default Mynum;
